﻿using UnityEngine;

namespace MyResKit
{
    public class AssetBundleRes : Res
    {
        public AssetBundleRes(string assetName) : base(assetName)
        {
        }


        public override void Load()
        {
            mAsset = AssetBundle.LoadFromFile(Name);
        }

        protected override void Unload()
        {
            (mAsset as AssetBundle).Unload(true);
        }
    }
}